package com.chixing.day06_static.singleton;
/*
    单例模式 singleton：在内存中对象 只能实例化一次
*/
public class Bank {
    public int bankId;
    public String bankName;
    static Bank bank = new Bank();
    public static Bank getBankInstance(){
        return bank;
    }
    public static Bank newBankInstance(){
        return bank;
    }
    private Bank(){}
}
